<template>
  <div>
    <img :src="serviceInfo.imgUrl" alt=""/>
    <p class="servic-name" @click="$router.push({name:serviceInfo.path})">
      {{ serviceInfo.name }}
    </p>
    <a-icon type="right" />
  </div>
</template>

<script>
export default {
  props: {
    serviceInfo:{
      type:Object
    }
  },
};
</script>
<style lang="scss" scoped>
div {
  height: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  img {
    height: 2rem;
  }
  p {
    flex-grow: 1;
    margin: 0px;
    font-size: 1.2rem;
    color: $font-color;
    margin-left: $common-margin;
    border-radius: $common-border-radius;
  }
}
</style>
